package com.ctl.model.serializable;


import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

@Getter
@Setter
@ToString
@EqualsAndHashCode
public class Person implements Serializable {
    private String id;
    private String name;
    private Integer age;

    public Person withId(String id) {
        this.id = id;
        return this;
    }

    public Person withName(String name) {
        this.name = name;
        return this;
    }

    public Person withAge(Integer age) {
        this.age = age;
        return this;
    }
}
